<?php 
/*
 module:		商品管理控制器
 create_time:	2022-08-09 17:31:09
 author:		
 contact:		
*/

namespace App\Model\admin;
use Hyperf\DbConnection\Model\Model;

class GoodsModel extends Model {


	protected $connection = 'default';

 	protected $primaryKey = 'goods_id';

	protected $table = 'goods';

	public $timestamps = false;

	protected $guarded = [];

	function goodscata(){
		return $this->hasOne(\App\Model\admin\GoodscataModel::class,'class_id','class_id');
	}

	function supplier(){
		return $this->hasOne(\App\Model\admin\SupplierModel::class,'supplier_id','supplier_id');
	}





}



